from django.urls import path
from .views import ProductsView,ProductDetailView

urlpatterns = [
    path('products/', ProductsView.as_view()),  # 商品列表页 GET POST 【/products/】
    path('products/<int:pk>/', ProductDetailView.as_view()),  # 商品详情页 GET PUT DELETE 【/products/<int:pk>/】
  
]